Method for generating roof outlines from lateral images

ABSTRACT

A computer system generates an outline of a roof of a structure based on a set of lateral images depicting the structure. For each image in the set of lateral images, one or more rooflines corresponding to the roof of the structure are determined. The computer system determines how the rooflines connect to one another. Based on the determination, the rooflines are connected to generate an outline of the roof.

CROSS-REFERENCE TO RELATED APPLICATIONS; BENEFIT CLAIM

This application claims the benefit as a Continuation of applicationSer. No. 15/693,347, filed Aug. 31, 2017 the entire contents of which ishereby incorporated by reference as if fully set forth herein, under 35U.S.C. § 120. The applicant(s) hereby rescind any disclaimer of claimscope in the parent application(s) or the prosecution history thereofand advise the USPTO that the claims in this application may be broaderthan any claim in the parent application(s).

FIELD OF THE INVENTION

The present invention relates to digital image processing and morespecifically, to generating an outline of a roof based on lateralimages.

BACKGROUND

Three-dimensional (3D) models of a building may be generated based ontwo-dimensional (2D) digital images taken of the building. The digitalimages may be taken via aerial imagery, specialized-camera equippedvehicles, or by a user with a camera. The 3D building model is a digitalrepresentation of the physical, real-world building. An accurate 3Dmodel may be used to derive various building measurements or to estimatedesign and renovation costs.

However, generating a 3D model of a building requires significant timeand resources. If only a particular measurement, or set of measurements,is needed, it would be inefficient to generate a 3D model of the wholebuilding in order to derive the particular measurement or measurements.

Rather than generating a 3D model to derive a measurement, themeasurement may be estimated using a machine learning model. Forexample, the roof area of a building may be estimated based on the roofoutline of the building. An outline of the roof of the building may begenerated using one or more images that depict an overhead view of thebuilding, such as orthographic or oblique images.

However, overhead images must be captured using specialized equipment orlicensed from a 3^(rd)-party provider. Thus, overhead images may bedifficult or costly to obtain. Additionally, the overhead view of abuilding may not fully describe features such as roof overhangs, wall toroof features, and etc. Furthermore, overhead imagery might beobstructed by foliate, cloud cover, neighboring buildings, and etc.Thus, a method for generating an outline of a building using only groundlevel images, or images taken at different heights and angles, isdesired. Images taken at different heights may include, for example,images from a hand-held camera from a person standing on a roof orimages from a remotely-operated camera capable of taking images atdifferent heights.

The approaches described in this section are approaches that could bepursued, but not necessarily approaches that have been previouslyconceived or pursued. Therefore, unless otherwise indicated, it shouldnot be assumed that any of the approaches described in this sectionqualify as prior art merely by virtue of their inclusion in thissection.

BRIEF DESCRIPTION OF THE DRAWINGS

In the drawings:

FIG. 1 illustrates an example computer system configured to perform thefunctions described herein;

FIG. 2 illustrates an example process for generating a roof outline froma set of lateral images;

FIG. 3 illustrates an example roof outline;

FIG. 4 illustrates an example set of lateral images;

FIG. 5 illustrates an example set of lateral images;

FIG. 6 illustrates an example image depicting a particular view of abuilding;

FIG. 7 is a block diagram illustrating a computer system that may beused to implement the techniques described herein.

DETAILED DESCRIPTION

In the following description, for the purposes of explanation, numerousspecific details are set forth in order to provide a thoroughunderstanding of the present invention. It will be apparent, however,that the present invention may be practiced without these specificdetails. In other instances, well-known structures and devices are shownin block diagram form in order to avoid unnecessarily obscuring thepresent invention.

General Overview

Techniques are described herein for generating an outline of a top of astructure based on a set of lateral images. As used herein, the term“structure” refers to any 3-dimensional object whose top-down outlinemay be generated based on lateral images depicting the structure. Astructure may be man-made or natural. Structures may include, forexample, houses, offices and other buildings, walls, statutes, and etc.An outline is the shape the top of the structure would have if viewedfrom a top-down view.

As referred to herein, a “lateral photo” or a “lateral image” is adigital image that substantially depicts one or more sides of a singlebuilding. A lateral photo may be captured at or near ground level.Additionally, a lateral photo may be captured at higher levels using,for example an image capture device mounted on a stick or on a drone.

For the purpose of explanation, examples shall be given herein where theoutline is a roof outline for a building. However, the techniquesdescribed herein are not limited to any particular type of structure.

In an embodiment, a set of rooflines depicted in a set of lateral imagesare determined. Determining the set of rooflines comprises, for eachimage, determining at least one roofline corresponding to the roof ofthe building depicted in the image. The set of rooflines are connectedto generate the roof outline.

In an embodiment, to determine how to connect rooflines in the set ofrooflines, the relative position of each image is determined.Determining the relative position of each image comprises determining arelative location and a relative rotation. In an embodiment, therelative position is determined based on sensor data associated witheach image. As an example, azimuth data providing camera orientationrelative to magnetic north may be combined with GPS location tocalculate the camera position for the image. As another example, therelative altitude of a camera in combination with the gravity vector maybe used to calculate the tilt of the camera for an image. In anembodiment, the relative position is determined based on commonstructure features depicted in each image.

System Overview

FIG. 1 illustrates an example computer system 110 that is configured toperform the techniques described herein. In the illustrated embodiment,computer system 110 is communicatively coupled via a network 102 to adata server 104 and an image capture device 106. Example computer system110 may include, or communicate with, other devices including computingdevices, image capture devices, databases and other data storagedevices, and display devices, according to embodiments. For example, aplurality of image capture devices and data servers may becommunicatively coupled to computer system 110. As another example, oneor more of the services attributed to computer system 110 herein may berun on other computer systems that are communicatively coupled tonetwork 102.

Computer system 110 may be implemented by any type of computing devicethat is communicatively coupled to network 102. Example implementationsof computer system 110 include, but are not limited to, workstations,personal computers, laptops, multi-processor systems, and the like.Although FIG. 1 shows a single element, computer system 110 may compriseone or more computers, such as a server cluster, and the computer system110 may be located in one or more physical locations.

In the illustrated embodiment, computer system 110 is communicativelycoupled to a database 120, which stores images received at computersystem 110. Database 120 may also store metadata associated with eachimage. In one embodiment, database 120 is a data storage subsystemconsisting of programs and data that is stored on any suitable storagedevice such as one or more hard disk drives, memories, or any otherelectronic digital data recording device configured to store data.Although database 120 is depicted as a single device in FIG. 1, database120 may span multiple devices located in one or more physical locations.Database 120 may be internal or external to computer system 110.

In some embodiments, computer system 110 may download, obtain, orreceive digital images from various sources, such as data server 104 orimage capture device 106. Example sources include image capture devices,remote computing devices, such as mobile phones or server computers.

Data server 104 may be any computing device, including but not limitedto: servers, racks, work stations, personal computers, laptops, Internetappliances, wireless devices, wired devices, multi-processor systems,and the like. Although FIG. 1 shows a single element, the data server104 broadly represents one or more multiple server computers, such as aserver cluster, and data server 104 may be located in one or morephysical locations. Data server 104 may also represent one or morevirtual computing instances that execute using one or more computers ina datacenter such as a virtual server farm. Data server 104 may receiveor obtain digital images from an image capture device 106, users, otherdata servers, or other sources. Data server 104 may also transmitdigital images to computer system 110.

Image capture device 106 may be any device that can capture or recordimages and videos. For example, image capture device 106 may be anycomputing device with a built-in camera or a communicatively coupleddigital camera. Example image capture devices include mobile phones,tablets, a computer with a webcam, a drone, or a specializedcamera-equipped vehicle. In the illustrated embodiment, image capturedevice 106 includes one or more sensors 108. Sensor data from sensors108 may be stored in association with digital images captured by imagecapture device 106. Example sensors include, but are not limited to,global positioning system (GPS), accelerometers, altimeters, gyroscopes,magnetometers, temperature sensors, light sensors, and proximitysensors. The number and types of sensor data associated with a digitalimage may vary depending on the image capture device and the particularimplementation.

In the illustrated embodiment, image capture device 106 is connected todata server 104 and computer system 110 via network 102. Image capturedevice 106 may be configured to transmit images directly to a dataserver 104 or to computer system 110.

Computer system 110 further comprises outline generating instructions112. Outline generation instructions 112 comprise one or moreinstructions which, when executed by computer system 110, cause computersystem 110 to analyze a set of digital images and generate an outline ofa roof of a building depicted in the set of digital images.

Roof Outline Overview

FIG. 2 illustrates an example flowchart for generating a roof outlinebased on a set of lateral images. A roof outline is the shape the roofof a building would have if viewed from an overhead, top-down view.

In an embodiment, the digital data comprises data defining a closedpolygon that has the shape of the roof outline. The data may be any typeof data that indicates a shape or an image depicting a shape, such asraster, vector, or geometric data. For example, the digital data may bean image depicting the roof outline. As another example, the digitaldata may define a plurality of ordered points and/or lines that, whenrendered using a rendering application, depict the shape of the roofoutline.

In an embodiment, the digital data comprises data indicating a scale ofthe roof outline. The data indicating the scale may be stored inassociation with the data defining the shape of the roof outline. Thescale indicates how the roof outline corresponds to a real-worldmeasurement of the roof outline. For example, the scale may be thereal-world measurement for a particular side or segment of the roofoutline. As another example, the shape may be defined as an image andthe scale may indicate that each pixel corresponds to a particularmetric distance.

FIG. 3 illustrates an example top-down view of a building. Outline 300indicates the shape of the roof outline of the building. The buildingcomprises four sides, side 302, side 304, side 306, and side 308.Outline 300 comprises line 310, line 312, line 314, line 316, line 318,and line 320. Each line connects to another line at an intersectionpoint, such as intersection points 330.

Digital Image Sets

At step 210, a computer system receives a set of digital images orphotos. The digital images may be received or retrieved from a singlesource or a plurality of sources. For example, computer system 110 mayreceive or retrieve digital images from one or more of data server 104,image capture device 106, or database 120.

The roof outline is generated based on a set of digital images. In anembodiment, the set of digital images comprise a plurality of lateralimages. The set of digital images depict a particular building, and eachdigital image of the image set may depict a different view of theparticular building. Additionally, each digital image may be taken at adifferent height. For example, a hand-held camera or a camera mounted ona stick or drone may be positioned at various heights to avoid visualobstructions.

A digital image may capture a front-facing view or a corner view. Afront-facing view depicts a single side of the building, such as thefront, back, left or right of the building. A corner view depicts two ormore sides of the building, such as the back left or the back right ofthe building.

In an embodiment, the set of digital images includes at least onedigital image for each side of the particular building. For example,referring to FIG. 3, the set of digital images includes at least animage that depicts side 302, an image that depicts side 304, an imagethat depicts side 306, and an image that depicts side 308.

In an embodiment, the set of digital images comprises at least onedigital image for each corner of the particular building. For example,referring to FIG. 3, the set of digital images includes at least animage that depicts sides 302 and 304, an image that depicts sides 304and 306, an image that depicts sides 306 and 308, and an image thatdepicts sides 308 and 302.

In an embodiment, the set of digital images comprises at least onedigital image for each side of the particular building and at least onedigital image for each corner of the particular building. Althoughexamples are described herein with reference to a building that has foursides, the techniques described herein are not limited to any number ofsides. The number and types of digital images in an image set may varydepending on the particular building and/or the particular embodiment.

Each digital image may also include metadata associated with the digitalimage. The metadata may be stored with the digital image or provided tothe machine learning model in association with the digital image. Themetadata indicates information related to the digital image or toobjects depicted in the image. For example, metadata may indicate thelocation where the digital image was captured. As another example, auser or other data source may provide information related to thebuilding depicted in the digital image, such as whether particularelements are present in the digital image, dimensions of particularelements of the building, the location of walls or roofs in thebuilding, intersection points or end points of roofs or walls of thebuilding, and etc. The information may be stored as metadata associatedwith the image.

In an embodiment, metadata associated with a digital image includessensor data from the image capture device that captured the digitalimage. As described above, example sensors include, but are not limitedto, global positioning system (GPS), accelerometers, altimeters,gyroscopes, magnetometers, temperature sensors, light sensors, andproximity sensors. Sensor data may include, for example, azimuth,gravity, linear velocity, angular velocity, distance to an object, andetc.

In an embodiment, metadata associated with a digital image includes viewinformation. The view information may indicate the side or sides of thebuilding depicted in the image. For example, view information for adigital image may indicate that the digital image depicts the front of abuilding.

In an embodiment, metadata associated with a digital image includessequence information. The sequence information indicates a sequence ofthe digital image within the set of digital images. For example, animage corresponding to the front of the building may be sequence number0, an image corresponding to the front-right of the building may besequence number 1, an image corresponding to the right of the buildingmay be sequence number 2, and etc.

Determine Rooflines

At step 220, a set of rooflines are determined from the set of digitalimages. One or more rooflines may be determined from the view of thebuilding depicted in a particular digital image of the set of digitalimages. Each roofline corresponds to a particular line in the roofoutline. In other words, the roof outline may be formed by projecting aplurality of rooflines onto a 2-dimensional plane and connecting them.

The number of rooflines determined for a digital image is based on theparticular view depicted in the digital image and the shape of thebuilding. For example, a corner view may have two rooflines, one foreach side of the building. If the building is a concave or convex shape,such as a T-shape or a U-shape, then a front-facing view may have aroofline for the concave and/or convex portions.

FIG. 4 illustrates an example digital image 400 and 410. For the purposeof illustrating a clear example, assume image 400 depicts side 302 andimage 410 depicts sides 302 and 304. Digital image 400 includesrooflines 402 and 404. Digital image 410 includes rooflines 404 and 406.Rooflines 402, 404, and 406, when projected onto a 2-dimensional plane,correspond to lines 310, 314, and 316 in outline 300, respectively.Additionally, digital image 400 and digital image 410 depict a pluralityof gable lines 420. The gable lines 420 may be used to determine a slopeof the roof and indicate how rooflines connect to each other.

In an embodiment, determining the one or more rooflines is based ondetermining one or more lines that are parallel to the roof or theground depicted in the digital image. For example, a roofline may followthe edge of a roof, a wall of the building, lines on a façade of thebuilding, or the base of the building. For example, referring to image400, if the right side of the roof is obscured by a tree then roofline404 may be determined by following the wall of the building rather thanby following the roof.

In an embodiment, a roofline may comprise a plurality of segments. Eachsegment may be determined based on a different part of the building.Referring to the above example, a first portion of roofline 404 may bedetermined by following the wall of the building, and a second portionmay be determined by following the roof. Thus, a roofline may bedetermined regardless of whether a portion of the roof is obscured.Additionally, any line parallel to the roof may be used to determine therooflines. Building elements that may be used to determine a roofline ora portion of a roofline may include, for example, gables, chimneys,gutters, downspouts, and etc.

Additionally or alternatively, two or more digital images may depict thesame portion of the roof from different angles. A combination of the twoor more digital images may be used to determine the rooflinecorresponding to the portion of the roof.

FIG. 5 illustrates an example digital image 500 and 510. Digital image500 and digital image 510 depict the same side of a building. In theillustrated example, a part of the building is obscured when capturedfrom a first angle and height, in image 500. Rooflines 502 are obscuredby tree 520.

Image 510 is captured at a second angle and height that avoids theobstruction from tree 520. The rooflines 502 are not obscured by tree520 and are visible in image 510. One or more lines in the roof outlinecorresponding to the particular part of the building may be determinedby correlating image 500 and image 510.

In an embodiment, a machine learning model is trained to identify theone or more rooflines in an image. In other embodiments, the one or morerooflines may be identified based on user input or from metadataindicating the locations of the one or more rooflines within the image.

In an embodiment, rather than identifying one or more rooflines, two ormore intersection points are identified. As described above, eachroofline connects to another roofline at an intersection point. A roofoutline may be formed by projecting the intersection points andconnecting the intersection points with lines.

In an embodiment, a machine learning model is trained to identify thetwo or more intersection points. In other embodiments, the intersectionpoints may be identified based on user input or from metadata indicatingthe location of the intersection points within the image.

Determining how Rooflines Connect

At step 230, the computer system determines how rooflines in the set ofrooflines connect to each other. In an embodiment, to determine howrooflines in the set of rooflines connect, the position of each image isdetermined. Determining an image comprises determining the position ofthe image capture device that captured the image. The position of theimage capture device includes the location of the device and therotation of the device. In an embodiment, the position of the imagecapture device is its position relative to the particular buildingdepicted in the image. In other embodiments, the position of the imagecapture device is relative to the location of one or more other imagecapture devices that captured one or more other images in the digitalimage set. The image capture device and the one or more other imagecapture devices may be the same device, or may be different imagecapture devices.

Additionally or alternatively, a combination of two or more imagescaptured at different angles and/or different heights are used toidentify related rooflines. Additionally, the same roofline depicted atdifferent angles or heights may also be determined.

In an embodiment, based on image sequence, image location, camera tilt,and relative altitude, a path corresponding to the path of the imagecapture device around the structure when capturing images in the digitalimage set is mapped. Based on the path, two or more images that arerelated in either a horizontal direction or a vertical direction may bedetermined.

Determining Image Location

In an embodiment, the location of an image capture device is determinedbased on, at least in part, sensor data from the image capture device.The sensor data may include, for example, GPS location, azimuth,gravity, linear velocity, angular velocity, and distance to an object.

For example, the location of an image capture device may be determinedbased on a GPS location of the image capture device. The GPS locationindicates a longitude and latitude coordinate location. The GPS locationmay be used to calculate the location of the image capture devicerelative to the building. Additionally, the GPS location may be used tocalculate the location of the image capture device relative to anotherimage capture device. The relative location may include a distance tothe other image capture device.

As another example, the position of an image capture device may bedetermined based on a linear velocity of the image capture device. Thelinear velocity indicates a speed at which the image capture device istravelling. Assume two digital images are captured in sequence, oneafter the other. The distance between two image capture devices may becalculated based on the linear velocity of the first image capturedevice, and the time between when the digital image was captured andwhen the next digital image in a sequence was captured.

The techniques described herein are not limited to any type or number ofsensors and sensor data. Any sensor data from which a distance or arelative distance can be calculated may be used.

Determining Image Rotation

In an embodiment, the rotation of an image capture device is determinedbased on, at least in part, sensor data from the image capture device.The sensor data may include, for example, GPS location, azimuth,gravity, linear velocity, angular velocity, and distance to an object.

For example, the rotation of an image capture device may be determinedbased on the azimuth of the image capture device. Azimuth indicateswhich direction the image capture device was facing, relative to north,when the digital image was captured. Based on the location of the imagecapture device and azimuth, the direction the image capture device isfacing relative to the building may be determined. The azimuth may becompared to azimuth information for another image capture device todetermine the rotation of the image capture device relative to the otherimage capture device.

In an embodiment, the position of an image capture device relative toanother image capture device is determined based, in part, on analyzingthe contents of the digital image. For each pair of digital images, oneor more common building elements depicted in both digital images areidentified. For example, one or more common points, lines, or featuresin a pair of digital images are identified. The relative positions ofthe common building elements are determined based on the location andappearance of the common points, lines, or features. For example,referring to FIG. 4, digital image 400 and digital image 410 depict thesame corner of a building from two different angles. As another example,referring to FIG. 5, digital image 500 and digital image 510 depict thesame feature(s) of the building from two different heights.

In an embodiment, a machine learning model is trained to identify commonbuilding elements between pairs of digital images. In other embodiments,the common building elements may be identified based on user input orfrom metadata indicating the location of the elements within the imageand metadata indicating the corresponding elements.

In an embodiment, the position of an image capture device relative toanother image capture device is determined based on a combination ofsensor data and image analysis. For example, a gravity vector is adirection within a three-dimensional plane that indicates where thehorizon (ground) is within the digital image. Assume a corner viewdepicts two sides of the building. A roofline corresponding to at leastone of the depicted sides is determined. The relative rotation of thecamera with respect to the house along a first axis is calculated basedon an intersection of the roofline with the horizon. After calculatingthe relative rotation with respect to the house for two images, therelative rotation with respect to the two images can be calculated.

The techniques described herein are not limited to any type or number ofsensors and sensor data. Any sensor data from which a rotation or arelative rotation can be calculated may be used.

Example Relative Position Calculation

FIG. 6 illustrates an example digital image depicting a particular viewof a building. Digital image 600 has a height h and a width w. Digitalimage 600 depicts a particular view, or reference frame, of thebuilding. For the purpose of illustrating a clear example, assume thebuilding lies along a grid. As illustrated in FIG. 6, the base of thebuilding is parallel to the x-axis and the y-axis, and the height of thebuilding is along the z-axis. Points A and B are end points of aroofline that is parallel to the ground. A horizon line indicates theedge of the horizon as depicted in the particular view. Point C is theintersection of a line passing through points A and B and the horizonline.

A gravity vector may be represented as g=(g_(x),g_(y),g_(z))^(T). Anexample equation for the horizon line is:

g _(x)·(x−w/2)+g _(y)·(y−h/2)+g·f=0

An example equation for calculating the rotation R of the camera withrespect to the reference frame attached to the building is:

R = [V_(x)^(′)  g × V_(x)^(′)  g]V_(x) = (x_(c) − w/2, y_(c) − h/2, f)^(T)$V_{x}^{\prime} = \frac{V_{x}}{V_{x}}$

where f is the focal length of the image, w is the width of the image, his the height of the image, and g is the gravity vector.

In an embodiment, to compute the relative position, the location ofpoint A may be placed at the origin, (0, 0, 0), and the location ofpoint B at w units away along the x direction. Given X_(A) and X^(B) arethe projection of points A and B, a translation vector (t_(x), t_(y),t_(z))^(T) may be calculated by:

t_(x) = x_(a)^(′) ⋅ t_(z) t_(y) = y_(a)^(′) ⋅ t_(z)$t_{z} = {\left( \frac{r_{00} - {x_{b}^{\prime} \cdot r_{20}}}{x_{b}^{\prime} - x_{a}^{\prime}} \right) \cdot w}$

wherein r₀₀ is the 0,0 element of the rotation R matrix, r₂₀ is the 2,0element of the rotation R matrix, and:

$x_{a}^{\prime} = \left( \frac{x_{a} - {w/2}}{f} \right)$$x_{b}^{\prime} = \left( \frac{x_{b} - {w/2}}{f} \right)$$y_{a}^{\prime} = \left( \frac{y_{a} - {h/2}}{f} \right)$$y^{\prime} = \left( \frac{y_{b} - {h/2}}{f} \right)$

In an embodiment, a first rotation matrix R₁ and a first translationvector T₁ may be calculated for a first image, and a second rotationmatrix R₂ and a second translation vector T₂ may be calculated for asecond image. An example equation for calculating the relative positionof the first and second image is:

R ₂₁ =R ₂ ·R ₁ ^(T)

T ₂₁ =T ₂ −R ₂ ·R ₁ ^(T) T ₁

Generating Roof Outline

At step 240, based on the position of each image, the rooflines depictedin the images are connected to generate a roof outline. In anembodiment, each roofline is depicted in two or more images of thedigital image set. The positions of the two or more images aretriangulated to determine where the roofline is located within atwo-dimensional plane.

One or more rooflines or portions of a roofline may be missing in theroof outline. For example, the set of digital images may not include animage that depicts a particular part of the building, or a part of thebuilding is obscured by other objects depicted in the image. In anembodiment, one or more lines in the roof outline are extended or addedto fill in the missing portions in order to form a closed polygon.

Additionally or alternatively, two or more digital images may depict aparticular part of the building from different angles or heights. Forexample, a part of the building may be obscured when captured from afirst angle or height, but visible from a second angle or height. One ormore lines in the roof outline corresponding to the particular part ofthe building may be determined by correlating the two or more digitalimages.

In an embodiment, generating the roof outline includes scaling the setof rooflines. Each digital image in the set of digital image may becaptured at a different distance from the building. A roofline depictedin a first digital image may be the same pixel distance as a rooflinedepicted in a second digital image. However, the real-world measurementcorresponding to each roofline may be different. That is, one rooflinemay actually be longer than the other roofline. The length of the scaledrooflines more reflects their real-world sizes relative to each other.Scaling a roofline may comprise stretching or shrinking the roofline.

In an embodiment, scaling one or more rooflines comprises identifying abuilding feature depicted in an image. The building feature may be afeature with a known size or a common size. Example building featuresinclude, but are not limited to, doors, windows, and façade elementslike bricks. The length of a roofline in the image is estimated based onthe identified building feature. The size may be based on the estimatedsize of the building feature, or the building feature may be used as aunit of measurement. For example, a roofline may be ten doors long.Based on the identified building feature and the relative position ofthe remaining images, the lengths of the remaining rooflines in the setof rooflines may be estimated.

Various approaches for determining a scale of a building based onbuilding features are described in U.S. Pat. No. 9,478,031, issued Oct.25, 2016, the entire contents of which is hereby incorporated byreference as if fully set forth herein.

Image Sequence

In an embodiment, each image in the set of digital images is associatedwith a sequence number. One or more of steps 220, 230, and 240 may beperformed for images in a sequence rather than for all digital images ateach step. For example, for a set comprising eight digital images, steps220, 230, and 240 may be performed for the first and second digitalimages in the set, then for the second and third, and so on. A portionof the roof outline is generated based on the first and second digitalimages, and subsequent lines are added to the roof outline based on thesubsequent images in the set.

In an embodiment, the sequence number for an image is determined basedon metadata associated with the image. For example, if the set of imageswere taken in a particular order, then the sequence number of the imagemay be based on the timestamp of the images. As another example, a useror application may indicate a sequence number for each image. Thesequence number may be stored in metadata with the image.

In an embodiment, the sequence number for an image is generated based onthe image position. For example, the relative position of each image inthe set of digital image may be determined. A particular image may beselected to be the first image. The next images in the sequence may bethe next images clockwise (or counter-clockwise) from the particularimage.

In an embodiment, images are selected based on both horizontal as wellas vertical direction. For example, some images may have image positionsnear the same location but at different angles or heights. Images fromnear the same location may be related based on their sensor information.In an embodiment, based on sensor data from the plurality of images, apath of an image capture device around the building is determined. Asequence number for an image of the plurality of images may be generatedbased on the position of the image along the path.

Hardware Overview

According to one embodiment, the techniques described herein areimplemented by one or more special-purpose computing devices. Thespecial-purpose computing devices may be hard-wired to perform thetechniques, or may include digital electronic devices such as one ormore application-specific integrated circuits (ASICs) or fieldprogrammable gate arrays (FPGAs) that are persistently programmed toperform the techniques, or may include one or more general purposehardware processors programmed to perform the techniques pursuant toprogram instructions in firmware, memory, other storage, or acombination. Such special-purpose computing devices may also combinecustom hard-wired logic, ASICs, or FPGAs with custom programming toaccomplish the techniques. The special-purpose computing devices may bedesktop computer systems, portable computer systems, handheld devices,networking devices or any other device that incorporates hard-wiredand/or program logic to implement the techniques.

For example, FIG. 7 is a block diagram that illustrates a computersystem 700 upon which an embodiment of the invention may be implemented.Computer system 700 includes a bus 702 or other communication mechanismfor communicating information, and a hardware processor 704 coupled withbus 702 for processing information. Hardware processor 704 may be, forexample, a general purpose microprocessor.

Computer system 700 also includes a main memory 706, such as a randomaccess memory (RAM) or other dynamic storage device, coupled to bus 702for storing information and instructions to be executed by processor704. Main memory 706 also may be used for storing temporary variables orother intermediate information during execution of instructions to beexecuted by processor 704. Such instructions, when stored innon-transitory storage media accessible to processor 704, rendercomputer system 700 into a special-purpose machine that is customized toperform the operations specified in the instructions.

Computer system 700 further includes a read only memory (ROM) 708 orother static storage device coupled to bus 702 for storing staticinformation and instructions for processor 704. A storage device 710,such as a magnetic disk, optical disk, or solid-state drive is providedand coupled to bus 702 for storing information and instructions.

Computer system 700 may be coupled via bus 702 to a display 712, such asa cathode ray tube (CRT), for displaying information to a computer user.An input device 714, including alphanumeric and other keys, is coupledto bus 702 for communicating information and command selections toprocessor 704. Another type of user input device is cursor control 716,such as a mouse, a trackball, or cursor direction keys for communicatingdirection information and command selections to processor 704 and forcontrolling cursor movement on display 712. This input device typicallyhas two degrees of freedom in two axes, a first axis (e.g., x) and asecond axis (e.g., y), that allows the device to specify positions in aplane.

Computer system 700 may implement the techniques described herein usingcustomized hard-wired logic, one or more ASICs or FPGAs, firmware and/orprogram logic which in combination with the computer system causes orprograms computer system 700 to be a special-purpose machine. Accordingto one embodiment, the techniques herein are performed by computersystem 700 in response to processor 704 executing one or more sequencesof one or more instructions contained in main memory 706. Suchinstructions may be read into main memory 706 from another storagemedium, such as storage device 710. Execution of the sequences ofinstructions contained in main memory 706 causes processor 704 toperform the process steps described herein. In alternative embodiments,hard-wired circuitry may be used in place of or in combination withsoftware instructions.

The term “storage media” as used herein refers to any non-transitorymedia that store data and/or instructions that cause a machine tooperate in a specific fashion. Such storage media may comprisenon-volatile media and/or volatile media. Non-volatile media includes,for example, optical disks, magnetic disks, or solid-state drives, suchas storage device 710. Volatile media includes dynamic memory, such asmain memory 706. Common forms of storage media include, for example, afloppy disk, a flexible disk, hard disk, solid-state drive, magnetictape, or any other magnetic data storage medium, a CD-ROM, any otheroptical data storage medium, any physical medium with patterns of holes,a RAM, a PROM, and EPROM, a FLASH-EPROM, NVRAM, any other memory chip orcartridge.

Storage media is distinct from but may be used in conjunction withtransmission media. Transmission media participates in transferringinformation between storage media. For example, transmission mediaincludes coaxial cables, copper wire and fiber optics, including thewires that comprise bus 702. Transmission media can also take the formof acoustic or light waves, such as those generated during radio-waveand infra-red data communications.

Various forms of media may be involved in carrying one or more sequencesof one or more instructions to processor 704 for execution. For example,the instructions may initially be carried on a magnetic disk orsolid-state drive of a remote computer. The remote computer can load theinstructions into its dynamic memory and send the instructions over atelephone line using a modem. A modem local to computer system 700 canreceive the data on the telephone line and use an infra-red transmitterto convert the data to an infra-red signal. An infra-red detector canreceive the data carried in the infra-red signal and appropriatecircuitry can place the data on bus 702. Bus 702 carries the data tomain memory 706, from which processor 704 retrieves and executes theinstructions. The instructions received by main memory 706 mayoptionally be stored on storage device 710 either before or afterexecution by processor 704.

Computer system 700 also includes a communication interface 718 coupledto bus 702. Communication interface 718 provides a two-way datacommunication coupling to a network link 720 that is connected to alocal network 722. For example, communication interface 718 may be anintegrated services digital network (ISDN) card, cable modem, satellitemodem, or a modem to provide a data communication connection to acorresponding type of telephone line. As another example, communicationinterface 718 may be a local area network (LAN) card to provide a datacommunication connection to a compatible LAN. Wireless links may also beimplemented. In any such implementation, communication interface 718sends and receives electrical, electromagnetic or optical signals thatcarry digital data streams representing various types of information.

Network link 720 typically provides data communication through one ormore networks to other data devices. For example, network link 720 mayprovide a connection through local network 722 to a host computer 724 orto data equipment operated by an Internet Service Provider (ISP) 726.ISP 726 in turn provides data communication services through the worldwide packet data communication network now commonly referred to as the“Internet” 728. Local network 722 and Internet 728 both use electrical,electromagnetic or optical signals that carry digital data streams. Thesignals through the various networks and the signals on network link 720and through communication interface 718, which carry the digital data toand from computer system 700, are example forms of transmission media.

Computer system 700 can send messages and receive data, includingprogram code, through the network(s), network link 720 and communicationinterface 718. In the Internet example, a server 730 might transmit arequested code for an application program through Internet 728, ISP 726,local network 722 and communication interface 718.

The received code may be executed by processor 704 as it is received,and/or stored in storage device 710, or other non-volatile storage forlater execution.

In the foregoing specification, embodiments of the invention have beendescribed with reference to numerous specific details that may vary fromimplementation to implementation. The specification and drawings are,accordingly, to be regarded in an illustrative rather than a restrictivesense. The sole and exclusive indicator of the scope of the invention,and what is intended by the applicants to be the scope of the invention,is the literal and equivalent scope of the set of claims that issue fromthis application, in the specific form in which such claims issue,including any subsequent correction.

1-24. (canceled)
 25. A method comprising: determining a plurality ofsegments depicted in a plurality of photos of a structure, wherein eachphoto of the plurality of photos depicts one or more walls of thestructure; projecting the plurality of segments onto a two-dimensional(2D) plane; and generating digital data representing a 2D outline basedon the projection of the plurality of segments onto the 2D plane. 26.The method of claim 25, wherein the 2D outline is a shape of a roofoutline.
 27. The method of claim 25, wherein projecting the plurality ofsegments onto a 2D plane forms a plurality of projected segments on the2D plane, wherein generating the digital data comprises: connectingtogether the plurality of projected segments.
 28. The method of claim25, further comprising: determining a plurality of intersection pointsof the plurality of segments; and projecting the plurality ofintersection points onto the 2D plane to form a plurality of projectedintersection points on the 2D plane.
 29. The method of claim 28, whereingenerating the digital data is further based on the plurality ofprojected intersection points onto the 2D plane.
 30. The method of claim29, wherein projecting the plurality of segments onto a 2D plane forms aplurality of projected segments on the 2D plane, wherein generating thedigital data comprises: connecting the plurality of projectedintersection points with the plurality of projected segments.
 31. Themethod of claim 25, further comprising extending one or more segments ofthe plurality of segments.
 32. The method of claim 25, furthercomprising adding one or more segments to the plurality of segments. 33.The method of claim 25, wherein none of the photos of the plurality ofphotos of the structure depict a whole roof of the structure.
 34. Themethod of claim 25, wherein one or more photos of the plurality ofphotos are non-aerial lateral photos.
 35. The method of claim 25,wherein the 2D outline is associated with a polygon.
 36. One or morenon-transitory computer-readable media storing instructions that, whenexecuted by a system comprising one or more processors, cause the one ormore processors to perform operations comprising: determining aplurality of segments depicted in the plurality of photos of astructure, wherein each photo of the plurality of photos depicts one ormore walls of the structure; projecting the plurality of segments onto atwo-dimensional (2D) plane; and generating digital data representing a2D outline based on the projection of the plurality of segments onto the2D plane.
 37. The one or more non-transitory computer-readable media ofclaim 36, wherein the 2D outline is a shape of a roof outline.
 38. Theone or more non-transitory computer-readable media of claim 36, whereinprojecting the plurality of segments onto a 2D plane forms a pluralityof projected segments on the 2D plane, wherein generating the digitaldata comprises: connecting together the plurality of projected segments.39. The one or more non-transitory computer-readable media of claim 36,further comprising: determining a plurality of intersection points ofthe plurality of segments; and projecting the plurality of intersectionpoints onto the 2D plane to form a plurality of projected intersectionpoints on the 2D plane.
 40. The one or more non-transitorycomputer-readable media of claim 39, wherein generating the digital datais further based on the plurality of projected intersection points ontothe 2D plane.
 41. The one or more non-transitory computer-readable mediaof claim 40, wherein projecting the plurality of segments onto a 2Dplane forms a plurality of projected segments on the 2D plane, whereingenerating the digital data comprises: connecting the plurality ofintersection points with the plurality of projected segments.
 42. Theone or more non-transitory computer-readable media of claim 36, furthercomprising extending one or more segments of the plurality of segments.43. The one or more non-transitory computer-readable media of claim 36,further comprising adding one or more segments to the plurality ofsegments.
 44. The one or more non-transitory computer-readable media ofclaim 36, wherein none of the photos of the plurality of photos of thestructure depict a whole roof of the structure.
 45. The one or morenon-transitory computer-readable media of claim 36, wherein one or morephotos of the plurality of photos are non-aerial lateral photos.
 46. Theone or more non-transitory computer-readable media of claim 36, whereinthe 2D outline is associated with a polygon.